home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Util / M / MacDOS 3.0.sit / MacDOS 3.0 ƒ / reviews / Australian MacWorld < prev    next >
Encoding:
Text File  |  1994-09-25  |  5.0 KB  |  88 lines  |  [TEXT/ttxt]

  1. Australian MacWorld - February 1994
  2. DOS but not DOS
  3.  
  4. MacDOS 1.0
  5.  
  6. MacDOS executes DOS commands and batch files on the Macintosh. It does not run DOS 
  7. software; it merely understands the arcane (but sometimes useful) syntax of the dreaded 
  8. MS-DOS operating system.
  9.  
  10. For example, if a DOS user wants to delete all files beginning with the letter 
  11. "A", they need only to type "DEL A*". This very useful capability may be hard to read 
  12. and long to type, but is actually very powerful and difficult to duplicate on the 
  13. Macintosh.
  14.  
  15. Most DOS batch files are used to execute DOS programs and are therefore of 
  16. little use on the Macintosh. However, the Macintosh is in dire need of a simple 
  17. scripting language for gaining control over files. AppleScript and Frontier attempted to 
  18. address this need but they are, ironically, too powerful. To delete files as in the 
  19. previous example, many more complex commands would be required. This is because 
  20. AppleScript and Frontier try to do too much while MacDOS focuses purely on files and 
  21. text input/output.
  22.  
  23. Instead of creating a brand-new scripting language, MacDOS uses widely-
  24. known DOS commands with special extensions to take advantage of Macintosh 
  25. features.
  26.  
  27. For example, DOS users know that files ending with "TXT" are text files. 
  28. Macintosh users must access a hidden attribute called File Type to find text files. 
  29. MacDOS does this through the use of additional command parameters. The 
  30. command "DIR *.TXT" must be replaced with "DIR/T=TEXT" under MacDOS.
  31.  
  32. The problem with such long-winded commands is that typing errors are very 
  33. frequent, as any DOS user will confess. Moreover, MacDOS requires the inclusion of 
  34. many quotation characters to handle Macintosh filenames which contain spaces. 
  35. This leads to even more incorrect typing. Fortunately, MacDOS allows the creation of 
  36. batch files which provide easy execution of common commands. Simply put the 
  37. commands in a text file, then type the name of the file. MacDOS will execute the 
  38. commands automatically. The batch files can be double-clicked from the Finder much 
  39. like the Applets created by AppleScript and Frontier.
  40.  
  41. MacDOS also introduces the concept of piping to the Macintosh. This is a standard 
  42. facility under DOS and Unix which allows the output of one program to become the input 
  43. of another. For example, the output of a directory listing can be directly passed to 
  44. another command which sorts the listing into alphabetical order. Similarly, any 
  45. output to the screen can be sent to a file via a redirection command. These capabilities are 
  46. confined to use with the commands supplied with macDOS because no Macintosh 
  47. software understands the concept of "Standard Input" or "Standard Output" 
  48. which exist in the text-based computer world.
  49.  
  50. MacDOS has been extended to cope with Macintosh-only features. For example, 
  51. an EJECT command is supplied which will eject floppy disks when required. DOS has no 
  52. such command because ejecting disks is a manual operation which happens without 
  53. the knowledge of the computer. The very common DOS error message "Drive not 
  54. ready" never occurs in MacDOS because it knows which disks are available.
  55.  
  56. DOS operates on the concept of drives. The main hard disk is drive "C:" while the 
  57. floppy is drive "A:". However, the Macintosh is capable of remembering floppy 
  58. disks even when they are ejected (they are usually shown in grey on the desktop). To 
  59. cater for this advantage, MacDOS allows disks to be referenced by their volume number 
  60. instead of the physical drive in which they reside. Volume 1 is the startup disk and 
  61. other volumes are assigned numbers thereafter. This enables DOS commands such 
  62. as "DIR A:" to be translated into "DIR 2:" yet remain fully compatible with all DOS 
  63. commands.
  64.  
  65. Credit should be given to the Western Australian company Rainbow Hill, maker of 
  66. MacDOS, for creating such a professional product. The user guide, supplied on disk and 
  67. available in printed form for an additional $25, is of very high quality and somewhat 
  68. better than the DOS manuals supplied by many IBM-clone manufacturers. The manual 
  69. very clearly explains the differences between MacDOS and standard DOS 
  70. commands, most notably explaining how to cope with filenames which are much more 
  71. expressive than the DOS "eight-dot-three" filenames.
  72.  
  73. The usefulness of MacDOS lies in its ability to create batch files for the 
  74. Macintosh. Its use of the DOS command language is more useful for its familiarity of 
  75. commands than the transportability of existing batch files from DOS machines. 
  76. Indeed, users will find themselves scripting in MacDOS in a fraction of the time required 
  77. for writing similar AppleScript commands. Perhaps this Australian creation has a place 
  78. in the worldwide marketplace, even if it does pay homage to the historical enemy of 
  79. Macintosh.
  80.  
  81. John Rotenstein
  82.  
  83. (C) 1994 IDG Communications Pty Ltd.
  84.  
  85. Reprinted from Australian MacWorld AMW, February 1994, with permission from IDG
  86. Communications Pty Ltd, Publisher of Australian MacWorld AMW 88 Christie Street,
  87. St. Leonards, NSW 2065, Australia. Tel +61-2-439 5133  +61-2-439 5512
  88.